var
    canvas,
    context,
    hub,
    imageObjBackground = new Image(),
    imageRock = new Image(),
    imageBonus = new Image(),
    collidables: ICollidable[],
    backGroundProgress = 0,
    DEBUG = false,
    SCOREBONUS = 1000,
    HIT_VALUE = 500,
    FPS = 0,

    myShipImageUrl = 'Images/New ship/tmp-35.gif',
    myShipImageUrl = 'Images/spaceship1.png',
    wingManImageUrl = 'Images/spaceship2.png',
    rockImageUrl = "Images/asteroid.png",
    backgroundImageUrl = "Images/space_background.jpg",
    bonusImageUrl = "Images/bonus1.png",

    //background value's
    backgroundVelocity = 0,
    backGroundX = 840,
    backGroundY = 440,
    Damage_MAX = 420,
    Hit_Damage = 35,
    frameCounter = 0,
    explosionArray = [],
    shipTransform = [],
    bonusArr: bonusItem[],
    rocksArr: spaceRock[],

    //value's for rotate the rock's
    TO_RADIANS = Math.PI / 180,
    myShip: spaceShip,
    wingMan: spaceShip,
    CountdownTimer = 1,
    IsGameStarted = false,
    isReadyToExit = false,

    qs = {
        'roomId': "",
        'userId': ""
    },

    player1Score = {
        x: 60,
        y: 35,
        value: 0
    },

    player2Score = {
        x: 750,
        y: 35,
        value: 0
    };